package com.upcode.weighing.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.upcode.weighing.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author alex
 * @since 2019-04-10
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class SysRole extends BaseEntity {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;//角色ID
    private String name;//角色名称
    private String code;//角色编码
    private Integer sortNum;//排序
    private String des;//描述
    private Integer status;//状态1 可用 0 不可用 -1: 删除
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//修改时间
}
